package com.example.springbootelasticsearch.pojo;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @ClassName User
 * @Description TODO
 * @Author wangzhendong
 * @Data 22:02
 * @Version 1.0
 **/

@Document(indexName = "userindex",type = "user")
public class User implements Serializable {
    @Id
    private Long id;
    private String first_name;
    private String last_name;
    private int age;
    private String about;

    public User(long id, String first_name, String last_name, int age, String about) {
        this.about=about;
        this.id=id;
        this.first_name=first_name;
        this.last_name=last_name;
        this.age=age;
    }

    public User() {
    }

    public String getAbout() {
        return about;
    }

    public void setAbout(String about) {
        this.about = about;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFirst_name() {
        return first_name;
    }

    public void setFirst_name(String first_name) {
        this.first_name = first_name;
    }

    public String getLast_name() {
        return last_name;
    }

    public void setLast_name(String last_name) {
        this.last_name = last_name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
